<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let name="唐玮";
        let web="tw.com";
        console.log(func`在线学习${name},网站为${web}`);

        function func(Strings,...vars){//...表示多个元素
            // console.log(name);
            // console.log(web);
            console.log(Strings);
            console.log(vars);
          
        }
    </script>
</body>
</html>